package barbershop.com.service.orders;

import barbershop.com.entity.orders.OrderPayment;
import org.springframework.data.domain.Page;

import java.util.List;

public interface OrderPaymentService {
    OrderPayment insert(OrderPayment record);
    Boolean delete(OrderPayment record);
    OrderPayment update(OrderPayment record);
    OrderPayment find(OrderPayment record);

    String updateTransAmount(Integer payId, Integer orderId);
    List<OrderPayment> findAll();
    // 分页
    Page<OrderPayment> getPage(Integer page, Integer size);
//    Page<OrderPayment> getPageByDate(Integer page, Integer size, String date);

    List<OrderPayment> findByDate(String date);


}
